package com.tengju.user.domain.model.club;

import com.tengju.user.domain.model.user.UserId;
import com.tengju.user.domain.model.user.UserIdCode;
import com.tengju.user.domain.model.user.UserInfo;

import java.util.List;
import java.util.Map;

/**
 * @author chenhang
 * @Date 2021/1/13
 */
public interface ClubMemberRepository {

    void addClubMember(ClubId clubId, List<UserInfo> members);

    ClubId findClubIdByIdCode(UserIdCode idCode);

    void changeClub(UserIdCode idCode, ClubId newClubId);

    Map<ClubId, List<Long>> batchGetMembers(List<ClubId> clubIds);

    void removeMember(UserIdCode idCode, ClubId clubId);

    List<UserIdCode> getMembers(ClubId clubId);

}
